package example;

import models.LinkModel;
import data.LinkData;

public class LinkExample {
	public static void create() {
		LinkData linkData = new LinkData();
		LinkModel link = new LinkModel();
		
		link = new LinkModel();
		link.setId(new Long(1));
		link.setName("link 1");
		link.setDesc("desc 1");
		link.setCategory(7);
		linkData.insert(link);
		
		link = new LinkModel();
		link.setId(new Long(2));
		link.setName("link 2");
		link.setDesc("desc 2");
		link.setCategory(5);
		linkData.insert(link);
		
		link = new LinkModel();
		link.setId(new Long(3));
		link.setName("link 3");
		link.setDesc("desc 3");
		link.setCategory(6);
		linkData.insert(link);
		
		link = new LinkModel();
		link.setId(new Long(4));
		link.setName("link 4");
		link.setDesc("desc 4");
		link.setCategory(1);
		linkData.insert(link);
	}
}
